import request from '@/utils/request'

export const listInterposes = (search) =>
  request({
    url: '/interposeScheme',
    method: 'get',
    params: {
      offset: search.offset,
      limit: search.limit,
      name: search.name
    }
  })


  export const getInterposeTypeById=(id)=>
    request({
      url:'/interposeScheme/'+id,
      method:'get'
    })

  export const addInterposeScheme=(id,scheme,eat,sprot,plain)=>
  request({
    url:'/interposeScheme/'+id+"/"+scheme+"/"+eat+"/"+sprot+"/"+plain,
    method:'post',

  })

  export const queryHealthmgrAll=()=>
  request({
    url:'/interposeScheme/queryHealthmgrAll',
    method:'get'
  })
